

-- D:\GOA\reslibrary\templete\res\item\item.pad.lua.xsl
gr_module("gm_xinbanchunzhongyun")

cgffinanceordergroupitemItem = inherit(GmCtrl.ControlBase):name("cgffinanceordergroupitemItem")

cgffinanceordergroupitemItem.init = function (self,parent,aid)

	local top = self
	local win = parent.hostWindow
	local fid = aid or "cgffinanceordergroupitemItem"
	GmCtrl.ControlBase.init(self,parent,fid,true)

	
	self.id = self:get_child("id")
	
	self.customer_id = self:get_child("customer_id")
	
	self.brand_id = self:get_child("brand_id")
	
	self.group_code = self:get_child("group_code")
	
	self.plan_code = self:get_child("plan_code")
	
	self.product_batch = self:get_child("product_batch")
	
	self.money_sum = self:get_child("money_sum")
	
	self.rebates_money = self:get_child("rebates_money")
	
	self.rebates_ratio = self:get_child("rebates_ratio")
	
	self.discount = self:get_child("discount")
	
	self.other_money = self:get_child("other_money")
	
	self.money_pay = self:get_child("money_pay")
	
	self.money_get = self:get_child("money_get")
	
	self.money_left = self:get_child("money_left")
	
	self.pay_percent = self:get_child("pay_percent")
	
	self.area = self:get_child("area")
	
	self.count = self:get_child("count")
	
	self.note = self:get_child("note")
	
	self.buyer = self:get_child("buyer")
	
	self.buyer_phone = self:get_child("buyer_phone")
	
	self.buyer_address = self:get_child("buyer_address")
	
	self.buyer_make = self:get_child("buyer_make")
	
	self.create_time = self:get_child("create_time")
	
	self.project_addr = self:get_child("project_addr")
	
	self.other_money_name = self:get_child("other_money_name")
	
	self.other_money_note = self:get_child("other_money_note")
	
	self.preferential = self:get_child("preferential")
	
	self.balance_money = self:get_child("balance_money")
	
	self.flag = self:get_child("flag")
	
	self.status = self:get_child("status")
	
	self.pay_time = self:get_child("pay_time")
	
	self.order_status = self:get_child("order_status")
	
	self.custime = self:get_child("custime")
	
	self.fintime = self:get_child("fintime")
	
	self.start_time = self:get_child("start_time")
	
	self.duedong_time = self:get_child("duedong_time")
	
	self.due_date = self:get_child("due_date")
	
	self.finish_time = self:get_child("finish_time")
	
	self.delivery_time = self:get_child("delivery_time")
	
	self.is_reminders = self:get_child("is_reminders")
	
	self.agent = self:get_child("agent")
	
	self.delivery = self:get_child("delivery")
	
	
	self:set_click(function(self)
		local ttop = top
		top.hostWindow:addNavFrame('__modal__info',nil,function(frame)
			local tttop = ttop
			print('########## $$$$$$$ 0')
			if frame and frame.set_data then
				frame:set_data(tttop.data)
			end
		end)
	end)
	
end


cgffinanceordergroupitemItem.set_data = function(self,data)
	self.data = data
	for a,b in pairs(data) do
		if data[a] and self[a] and self[a].set_inner_text and self[a].is_init and self[a]:is_init() then
			self[a]:set_inner_text(tostring(data[a]))
		end
	end
end


	